Skip to main content

addRequiredSigner

readonly addRequiredSigner!: (
signer: Address | StakeAddress | AddressStr | StakeAddressBech32
) => TxBuilderRunner

adds the all credentials of the address to the requiredSigners field of a Tx instance.

only the signers included in that field are passed to a contract's ScriptContext.

that includes payment credentials and, if present, stake credentials.

if you have an address with both payment and stake credentials, but wish only to include one of them, consider using the addRequiredSignerKey method.

returns a reference to the same TxBuilderRunner.